//	mpsf.event.source.cpp

#include <mpsf.event.h>

void *evtsrc_class;

__declspec(dllexport) void main(void)
{
	setup((t_messlist**)&evtsrc_class, (method)evtsrc_new,
		(method)evtsrc_free, (short)sizeof(t_evtsrc), (method)0L,
		A_SYM, 0);
	// add messages
	addmess((method)evtsrc_raise, "raise", A_GIMME, 0);
}

void *evtsrc_new(t_symbol *evtname)
{
	t_evtsrc *x;
	//...
	return NULL;
}

void evtsrc_free(t_evtsrc *x)
{
	//free
}

void evtsrc_raise(t_evtsrc *x, t_symbol *msg, short argc, t_atom *argv)
{
	//...
}

